//
//  BKClassifyCommon.h
//  bestkeep
//
//  Created by 毛韶谦 on 2016/11/3.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>

#define BKClassifyLocalizedString(key) [BKClassifyCommon localizedStringWithKey:key]
#define RGB(r,g,b) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:1]

extern NSString * const BKClassifyStrAPI;
extern NSString * const BKClassify_goods_classify;

typedef void(^Compeletion)(id result, NSError *error);
typedef void(^Failure)(id result, NSError *error);

@interface BKClassifyCommon : NSObject

@property(nonatomic, strong) ExceptionView *exceptionView;

+(NSString*)localizedStringWithKey:(NSString*)key;
//获取第一分类类名数组（头标题）
+(void)getTopClassWithCategoryType:(NSString *)categoryType categoryId:(NSString *)categoryId compeletion:(Compeletion)compeletion failure:(Failure)failure;
// 分类树状数据
+(void)getGoodsClassifyTreeInfo:(UIView*)view compeletion:(Compeletion)compeletion failure:(Failure)failure;
// 商品列表详情
+(void)getNewGoodsDetailClassifyTreeInfo:(NSDictionary *)goodsList compeletion:(Compeletion)compeletion failure:(Failure)failure;

+(NSMutableAttributedString *)specialStringStyle:(NSString*)string fontOfSize:(CGFloat)fontOfSize;

+(BOOL)islogin;

+(void)haveNewInformation:(UIView*)badgeView;

@end
